package algorithm.weightgraph;

import java.util.Iterator;

public interface Graph<Weight extends Number&Comparable> {
    //添加边
    void addEdge(int s,int e,Weight weight);
    //获取边数
    int getEdgeNums();
    //获取顶点数
    int getPointNums();

    boolean hasEdge(int s,int e);

    Iterator<Edge<Weight>> getIterator(int s);

    void show();
}
